﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Project.controller;
using Project.UI;
using Project;

public class UIController : MonoBehaviour {

	// Use this for initialization
	void Start () {

        EventManager.instance.addEventListener(Events.ON_TURN_TO_MAIN_EVENT,gameObject,"TurnToMain");
		
	}

    void TurnToMain(Events evt)
    {
        Debug.Log("TurnToMain");
        NavigationController.Instance.PushViewController(UIManager.Instance.AddMainPage());
    }
	
	// Update is called once per frame
	void Update () {
		
	}
}
